package com.xbongbong.admin.model;

import com.xbongbong.admin.domain.entity.MirrorBusinessRuleInfoEntity;
import com.xbongbong.paas.toolbox.wrap.IModel;

import java.util.List;
import java.util.Map;

/**
 * 业务规则-镜像
 * @author xingxing.xiao
 * @date 2020/06/11 16:56
 */
public interface MirrorBusinessRuleInfoModel extends IModel<MirrorBusinessRuleInfoEntity> {
    /**
     * 插入实体
     * @param entity 实体
     * @return Integer MyBatis操作结果 1：成功
     */
    @Override
    Integer insert(MirrorBusinessRuleInfoEntity entity);

    @Override
    List<MirrorBusinessRuleInfoEntity> findEntitys(Map<String, Object> param);

    Integer delete(Long key, String corpid);

    /**
     * 批量插入实体
     * @param list
     * @return 返回数据的列表
     */
    List<MirrorBusinessRuleInfoEntity> insertBatch(List<MirrorBusinessRuleInfoEntity> list);
    /**
     *
     * @param formId
     * @param businessType
     * @param mirrorId
     */
    List<MirrorBusinessRuleInfoEntity> getByFormId(Long formId, Integer businessType, Long mirrorId);
}
